package com.sinosoft.entity;

import java.util.Date;

import org.apache.commons.lang3.StringUtils;

import com.sinosoft.util.DateUtil;

public class DefCompany {
    private Long comId;

    private String comCode;

    private String comName;

    private String grade;

    private String province;

    private String city;

    private String country;

    private String street;

    private String zipcode;

    private String phone;

    private String website;

    private Long parentComId;

    private String rcState;

    private String createDate;

    private String modifyDate;

    private Long createUserId;

    private Long modifyUserId;
    
    private Integer start; //分页查询时的查询起点索引
    
    private Integer rows; //分页查询时的每页显示条数

    public Integer getStart() {
		return start;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getRows() {
		return rows;
	}

	public void setRows(Integer rows) {
		this.rows = rows;
	}

	public Long getComId() {
        return comId;
    }

    public void setComId(Long comId) {
        this.comId = comId;
    }

    public String getComCode() {
        return comCode;
    }

    public void setComCode(String comCode) {
        this.comCode = StringUtils.isBlank(comCode) ? null : comCode.trim();
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = StringUtils.isBlank(comName) ? null : comName.trim();
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = StringUtils.isBlank(grade) ? null : grade.trim();
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = StringUtils.isBlank(province) ? null : province.trim();
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = StringUtils.isBlank(city) ? null : city.trim();
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = StringUtils.isBlank(country) ? null : country.trim();
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = StringUtils.isBlank(street) ? null : street.trim();
    }

    public String getZipcode() {
        return zipcode;
    }

    public void setZipcode(String zipcode) {
        this.zipcode = StringUtils.isBlank(zipcode) ? null : zipcode.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = StringUtils.isBlank(phone) ? null : phone.trim();
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = StringUtils.isBlank(website) ? null : website.trim();
    }

    public Long getParentComId() {
        return parentComId;
    }

    public void setParentComId(Long parentComId) {
        this.parentComId = parentComId;
    }

    public String getRcState() {
        return rcState;
    }

    public void setRcState(String rcState) {
        this.rcState = StringUtils.isBlank(rcState) ? null : rcState.trim();
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = DateUtil.format(createDate);
    }

    public String getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = DateUtil.format(modifyDate);
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public Long getModifyUserId() {
        return modifyUserId;
    }

    public void setModifyUserId(Long modifyUserId) {
        this.modifyUserId = modifyUserId;
    }
}